﻿(function () {
    var offerSelect = $('#offer-type');

    offerSelect.on('change', function () {
        if (offerSelect.val() === "holidays") {
            $('#transport-type').parent().show();
            $('#itinerary').parent().hide();
            $('#waterbody').parent().hide();
        }
        else if (offerSelect.val() === "excursions") {
            $('#transport-type').parent().show();
            $('#itinerary').parent().show();
            $('#waterbody').parent().hide();
        }
        else if (offerSelect.val() === "cruise") {
            $('#waterbody').parent().show();
            $('#transport-type').parent().hide();
            $('#itinerary').parent().hide();
        }
        else {
            return;
        }
    });
})();